package homebuh.model
{
	import org.puremvc.as3.interfaces.IProxy;
	import org.puremvc.as3.patterns.proxy.Proxy;

	public class ApplicationProxy extends Proxy implements IProxy
	{
		public static const NAME:String = 'ApplicationProxy';

		public static const VIEW_STATE_CHANGED: String = "viewStateChanged";		

		private var _viewState: uint;

		public static const LOGIN_STATE : uint = 1;
		public static const LOGGED_IN_STATE : uint = 2;
		public static const LOGIN_ERROR_STATE : uint = 3;		

		public function ApplicationProxy(data:Object = null) 
		{
			super(NAME, data);
		}
		
		public function set viewState(value: uint): void
		{
			_viewState = value;
			sendNotification(ApplicationProxy.VIEW_STATE_CHANGED);
		}
		
		public function get viewState(): uint
		{	
			return _viewState;
		}						
	}
}